package com.qdlc.p2p.dal.dao;

import java.util.List;

import com.qdlc.p2p.dal.common.dao.BaseDao;
import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dto.Lottery;
import com.qdlc.p2p.dal.model.LotteryModel;

/**
 * 积分抽奖Dao
 */
public interface LotteryDao extends BaseDao<Lottery> {

	/**
	 * 得到积分抽奖列表
	 *
	 * @return
	 */
	List<Lottery> getLotteryByCategory(int category);

	double getTotalRate(int category);

	PageDataList<Lottery> getAllLottery(LotteryModel model);



}
